package com.sl.water.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;

/**
 * @description:预案接口实体
 * @author: duan
 * @time: 2025-06-26 11:43
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("plan_dynamic")
@Builder
public class PlanDynamic extends Model<PlanDynamic> {
    @Schema(description = "预案ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "预演ID")
    private Long rehearsalId;

    @Schema(description = "预案名称")
    private String name;

    @Schema(description = "报告")
    private String attach;

    @Schema(description = "状态(0未发布,1,已发布)")
    private Integer state;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;
}
